package cn.zeng.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

import static cn.zeng.dto.Color.BLACK;


/**
 * 糖尿病
 *
 * @author zyb
 */
@Data
public class Diabetes {

    private String level="好风险";
    private String image= "u4736.png";

    private String familyDiabetes="11122";
    private String familyDiabetesColor = BLACK.getName();

    private String highBloodPressure="222";
    private String highBloodPressureColor = BLACK.getName();

    private Double bmi=123.;
    private String bmiColor = BLACK.getName();
    private String bmiReference="12~222";

    /**
     * 腰围
     */
    private Integer waistCircumference=121;
    private String waistCircumferenceColor = BLACK.getName();
    private String waistCircumferenceReference="222";

    private Integer age=20;

    private String smoking="吸烟";
    private String smokingColor = BLACK.getName();


    /**
     * 空腹血糖
     */

    private Double fastingPlasmaGlucose=12.;
    private String fastingPlasmaGlucoseColor = BLACK.getName();
    private String fastingPlasmaGlucoseReference="221.";

    /**
     * 甘油三酯
     */
    private Double triglycerides=12.;
    private String triglyceridesColor = BLACK.getName();
    private String triglyceridesReference="221";

    /**
     * 高密度蛋白固醇
     */

    private Double highDensityLipoprotein=121.;
    private String highDensityLipoproteinColor = BLACK.getName();
    private String highDensityLipoproteinReference="21.";


    private Integer fruit=12;
    private String fruitColor = BLACK.getName();
    private String fruitReference="2112";

    private String activity="不好";
    private String activityColor = BLACK.getName();

    /**
     * 改善方式
     */
    private String improveWay="1222222221212\tt22222222222\t44444444444\tt55555555";


    public Map<String, Object> toMap() {
        Map<String, Object> map = new HashMap<>(30);
        map.put("Diabetes_level", level);
        map.put("Diabetes_image", image);
        map.put("Diabetes_familyDiabetes", familyDiabetes);
        map.put("Diabetes_familyDiabetesColor", familyDiabetesColor);
        map.put("Diabetes_highBloodPressure", highBloodPressure);
        map.put("Diabetes_highBloodPressureColor", highBloodPressureColor);
        map.put("Diabetes_bmi", bmi);
        map.put("Diabetes_bmiColor", bmiColor);
        map.put("Diabetes_bmiReference", bmiReference);
        map.put("Diabetes_waistCircumference", waistCircumference);
        map.put("Diabetes_waistCircumferenceColor", waistCircumferenceColor);
        map.put("Diabetes_waistCircumferenceReference", waistCircumferenceReference);
        map.put("Diabetes_age", age);
        map.put("Diabetes_smoking", smoking);
        map.put("Diabetes_smokingColor", smokingColor);
        map.put("Diabetes_fastingPlasmaGlucose", fastingPlasmaGlucose);
        map.put("Diabetes_fastingPlasmaGlucoseColor", fastingPlasmaGlucoseColor);
        map.put("Diabetes_fastingPlasmaGlucoseReference", fastingPlasmaGlucoseReference);
        map.put("Diabetes_triglycerides", triglycerides);
        map.put("Diabetes_triglyceridesColor", triglyceridesColor);
        map.put("Diabetes_triglyceridesReference", triglyceridesReference);
        map.put("Diabetes_highDensityLipoprotein", highDensityLipoprotein);
        map.put("Diabetes_highDensityLipoproteinColor", highDensityLipoproteinColor);
        map.put("Diabetes_highDensityLipoproteinReference", highDensityLipoproteinReference);
        map.put("Diabetes_fruit", fruit);
        map.put("Diabetes_fruitColor", fruitColor);
        map.put("Diabetes_fruitReference", fruitReference);
        map.put("Diabetes_activity", activity);
        map.put("Diabetes_activityColor", activityColor);
        map.put("Diabetes_improveWay", improveWay);
        return map;
    }

}
